//It depends on "/resources/js/jquery/ui/jquery-ui-1.10.3.custom.min.js"
function Prompt(){
	this.alert = function(opts){
		openAlert(opts);
	};
	
	var openAlert = function(opts){
		var id = opts.id;
		var title = (opts.title != null && opts.title != "undefined")?opts.title:"";
		var msg = (opts.msg != null && opts.msg != "undefined")?opts.msg:"";

		$("body:has(#"+id+")").each(function(){ $("#"+id).remove(); });
		$("body").append("<div id='"+id+"' style='display:none;' title='"+title+"'>"+msg+"</div>");

		jQuery("#"+id).dialog({
			modal : true, 
			resizable : false, 
			height : 298, 
			width : 405, 
			//position : [700, 200], 
			show : 'slide', 
			hide : 'slide',
			buttons: {
				"확인": function() {
					jQuery(this).dialog("close");
				}
			}
		});
	};
}